//
//  KKConversationItem.h
//  ReplyAssistant
//
//  Created by liaozhenming on 2018/11/22.
//  Copyright © 2018 KK. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "RAChatKit/RAConversation.h"

@class KKMessageItem;

NS_ASSUME_NONNULL_BEGIN

@interface KKConversationItem : RAConversation

@property (nonatomic, strong) KKMessageItem *lastMessage;   //最后一条消息
@property (nonatomic, strong) NSMutableArray *msgList;

@property (nonatomic, strong) RASuccess receiveMsgHandle;

//  发送消息
- (NSArray*)sendMessage:(KKMessageItem*)msg succ:(nullable RASuccess)succ fail:(nullable RAFail)fail;
//  发送图片消息
- (NSArray*)sendImageMessage:(KKMessageItem*)msg succ:(nullable RASuccess)succ fail:(nullable RAFail)fail;

//  接收消息
- (void)receiveMessage:(KKMessageItem*)msg;

//  获取历史数据
- (void)loadHistoryMessages:(NSArray*)messages;
@end

NS_ASSUME_NONNULL_END
